package com.fanghaoran.notes.service.impl;

import com.fanghaoran.notes.bean.MyResult;
import com.fanghaoran.notes.dao.TypeDao;
import com.fanghaoran.notes.dao.impl.TypeDaoImpl;
import com.fanghaoran.notes.entity.ProductType;
import com.fanghaoran.notes.service.TypeService;
import com.fanghaoran.notes.util.Constants;
import com.fanghaoran.notes.util.StringUtil;

import java.util.List;

/**
 * @Author: win11
 * @Date: 2023/04/18/18:14
 * @Description:
 */
public class TypeServiceImpl implements TypeService {
    TypeDao typeDao=new TypeDaoImpl();
    @Override
    public MyResult findAllType() throws Exception {
        List<ProductType> types = typeDao.selectAllType();
        return StringUtil.returnOfSelect(types);
    }
}
